package org.particlethink.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.particlethink.context.Context;
import org.particlethink.mapper.impl.ProMaterialRequestHelper;
import org.particlethink.model.Material;
import org.particlethink.model.Supplier;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface MaterialMapper {
    List<Material> selectByIds(String token, List<Integer> ids);


    List<Material> all(String token);

    Material selectById(String token, int materialId);

    List<Material> selectByNos(String token, List<String> nos);

    //    List<ProMaterialRequestHelper.Material>  selectByTypes(String token, List<String> types);
    List<Supplier> selectByParentCategoryId(String token, String parentCategoryCode);

    ProMaterialRequestHelper.MaterialResponse Find(String token, List<Integer> ids, List<String> materialCodes, List<String> codes, Integer pageNum, Integer pageSize);
}
